<?php
/**
 * Created by PhpStorm.
 * User: Aliaksei Lazerka
 * Date: 9/28/14
 * Time: 12:13 PM
 */

namespace log;

/**
 * The LogConfig class provides configuration
 * for logger properties
 */
class LogConfig
{

  /**
   * @var string logger name
   */
  private $name;

  /**
   * @var string messages print pattern
   */
  private $pattern;

  /**
   * @var string logger log level
   */
  private $logLevel;

  /**
   * @var string path to log file
   */
  private $pathToFile;

  /**
   * @var boolean append file or overwrite
   */
  private $append = false;

  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }

  /**
   * @param string $name
   */
  public function setName($name)
  {
    $this->name = $name;
  }

  /**
   * @return string
   */
  public function getPattern()
  {
    return $this->pattern;
  }

  /**
   * @param string $pattern
   */
  public function setPattern($pattern)
  {
    $this->pattern = $pattern;
  }

  /**
   * @return string
   */
  public function getLogLevel()
  {
    return $this->logLevel;
  }

  /**
   * @param string $logLevel
   */
  public function setLogLevel($logLevel)
  {
    $this->logLevel = $logLevel;
  }

  /**
   * @return boolean
   */
  public function isAppend()
  {
    return $this->append;
  }

  /**
   * @param boolean $append
   */
  public function setAppend($append)
  {
    $this->append = $append;
  }

  /**
   * @return string
   */
  public function getPathToFile()
  {
    return $this->pathToFile;
  }

  /**
   * @param string $pathToFile
   */
  public function setPathToFile($pathToFile)
  {
    $this->pathToFile = $pathToFile;
  }


}